using System;
using System.Xml;
using System.Xml.Serialization;
namespace SERP.DAO{
	/********************************BEGIN RolesEntity****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:09/03/2013 19:09:04</para>
	/// <para>Class Name: RolesEntity</para>
	/// <para>Description: ClassRolesEntity store data of table Roles</para>
	///</summary>

	[Serializable]
	public partial class RolesEntity{


		private bool _InternalChangedIsNullRoleId=true;
		private bool _IsNullRoleId=true;
		private bool _InternalChangedIsNullRoleName=true;
		private bool _IsNullRoleName=true;
		private bool _InternalChangedIsNullNote=true;
		private bool _IsNullNote=true;
		private bool _InternalChangedIsNullRoleType=true;
		private bool _IsNullRoleType=true;
		private int _RoleId;
		private string _RoleName;
		private string _Note;
		private Byte _RoleType;
		[XmlElement(ElementName = "IsNullRoleId")]
		public bool IsNullRoleId{
			get{return _IsNullRoleId;}
			set{if(!_InternalChangedIsNullRoleId)_IsNullRoleId=value;}
		}
		[XmlElement(ElementName = "IsNullRoleName")]
		public bool IsNullRoleName{
			get{return _IsNullRoleName;}
			set{if(!_InternalChangedIsNullRoleName)_IsNullRoleName=value;}
		}
		[XmlElement(ElementName = "IsNullNote")]
		public bool IsNullNote{
			get{return _IsNullNote;}
			set{if(!_InternalChangedIsNullNote)_IsNullNote=value;}
		}
		[XmlElement(ElementName = "IsNullRoleType")]
		public bool IsNullRoleType{
			get{return _IsNullRoleType;}
			set{if(!_InternalChangedIsNullRoleType)_IsNullRoleType=value;}
		}
		[XmlElement(ElementName = "RoleId")]
		public int RoleId{
			get{return _RoleId;}
			set{
				_RoleId=value;
				if(_RoleId!=null){
					_IsNullRoleId=false;
					_InternalChangedIsNullRoleId=true;
				}
			}
		}
		[XmlElement(ElementName = "RoleName")]
		public string RoleName{
			get{return _RoleName;}
			set{
				_RoleName=value;
				if(_RoleName!=null){
					_IsNullRoleName=false;
					_InternalChangedIsNullRoleName=true;
				}
			}
		}
		[XmlElement(ElementName = "Note")]
		public string Note{
			get{return _Note;}
			set{
				_Note=value;
				if(_Note!=null){
					_IsNullNote=false;
					_InternalChangedIsNullNote=true;
				}
			}
		}
		[XmlElement(ElementName = "RoleType")]
		public Byte RoleType{
			get{return _RoleType;}
			set{
				_RoleType=value;
				if(_RoleType!=null){
					_IsNullRoleType=false;
					_InternalChangedIsNullRoleType=true;
				}
			}
		}
	}
	/*****************************************************************************************************/
	/**********************************END RolesEntityBase*****************************************/
	/*****************************************************************************************************/
}

